xl: allow scaling suffix on memory sizes in mem-set and mem-max
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 May 2010 10:38:12 +0000 (11:38 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 May 2010 10:38:12 +0000 (11:38 +0100)
commit6cbd479e30dc414af9b892e96412920a753391cd
tree77d09683a9a9a87e7f6f3400aa64f594a68d5589
parent5b97152a14ab5fc47abb916d26b4490f2c9a7fff
xl: allow scaling suffix on memory sizes in mem-set and mem-max

Allow mem-set and mem-max to take 'b', 'k', 'm', 'g' and 't' as
scaling suffixes for bytes, kilobytes, mega, etc.  An unadorned number
is still treated as kilobytes so no existing users should be affected.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c